package com.wanxi.dangdang.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
*@author:吕永杰
*@date:
*@description
*/
@Data
@ApiModel(value = "com.wanxi.dangdang.model.pojo.Order", description = "订单pojo")
public class Order {

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderNumber;

    @ApiModelProperty(value = "景区ID")
    private Long scenicId;

    @ApiModelProperty(value = "景区名称")
    private String scenicName;

    @ApiModelProperty(value = "分销商ID")
    private Long storeId;

    @ApiModelProperty(value = "销售价")
    private BigDecimal price;

    @ApiModelProperty(value = "微信ID")
    private String weChatId;

    @ApiModelProperty(value = "联系人姓名")
    private String realName;

    @ApiModelProperty(value = "联系人身份证号码")
    private String idCard;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "出行日期")
    private Date tripDate;

    @ApiModelProperty(value = "退款原因")
    private String remark;

    @ApiModelProperty(value = "所定票数")
    private Integer poll;

    @ApiModelProperty(value = "总佣金")
    private BigDecimal commission;

    @ApiModelProperty(value = "佣金比例")
    private double commissionRate;

    @ApiModelProperty(value = "订单状态")
    private Integer orderState;

    @ApiModelProperty(value = "负责人ID")
    private Long adminId;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "状态：0未删除，1删除")
    private Integer deleteStatus;

}
